package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 房产信息明细表-幼儿园
 *
 * @author wangtao
 * @since 2023-04-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_house_detail_nursery")
@Schema(name = "EduHouseDetailNursery", title = "房产信息明细表-幼儿园", description = "房产信息明细表-幼儿园实体类")
public class EduHouseDetailNursery extends Model<EduHouseDetailNursery> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "houseDetailId", title = "房产明细id")
    @TableId(value = "house_detail_id", type = IdType.ASSIGN_ID)
    private String houseDetailId;

    @Schema(name = "houseId", title = "房产id")
    @TableField(value = "house_id")
    private String houseId;

    @Schema(name = "realProperty", title = "不动产权号")
    @TableField(value = "real_property")
    private String realProperty;

    @Schema(name = "obligee", title = "权利人")
    @TableField(value = "obligee")
    private String obligee;

    @Schema(name = "idcard", title = "身份证")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "fullName", title = "姓名")
    @TableField(value = "full_name")
    private String fullName;

    @Schema(name = "preStudentId", title = "预采集学生id")
    @TableField(value = "pre_student_id")
    private String preStudentId;

    @Schema(name = "year", title = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "commonSituation", title = "共有情况key")
    @TableField(value = "common_situation")
    private String commonSituation;

    @Schema(name = "commonSituationName", title = "共有情况value")
    @TableField(value = "common_situation_name")
    private String commonSituationName;

    @Schema(name = "allocationFlag", title = "是否在分配池中(1:是)")
    @TableField(value = "allocation_flag")
    private String allocationFlag;

    @Schema(name = "remark", title = "备注")
    @TableField(value = "remark")
    private String remark;

    @Schema(name = "schoolId", title = "分配确认学校id")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "status", title = "0.待审核1.已审核 其他.不可用")
    @TableField(value = "status")
    private String status;

    @Schema(name = "del", title = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "createName", title = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", title = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", title = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", title = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Override
    public Serializable pkVal() {
        return this.houseDetailId;
    }
}
